<!--
 * @Descripttion: 
 * @version: V1.0.0.1
 * @Author: daiyiru
 * @Date: 2023-02-22 22:46:56
 * @LastEditors: daiyiru
 * @LastEditTime: 2023-02-23 15:35:25
-->
<template>
  <div class="">
    <el-dialog
      customClass="cstomMenuWidth"
      title="详情"
      :close-on-click-modal="false"
      :visible.sync="resultDetailShow"
      width="750"
      @close="close"
      append-to-body
      style="margin-left: 20%; height: 800px; overflow: auto"
    >
      <el-container>
        <Table
          :list="tableData"
          :title-list="titleList"
          :page-info="searchData"
          style="width: 100%"
        />
      </el-container>
    </el-dialog>
  </div>
</template>

<script>
import util from "../../api/detailTableUtil.js";
export default {
  name: "",
  components: {},
  data() {
    return {
      resultDetailShow: false,
      tableData: [],
      searchData: {
        pageSize: 10,
        current: 1,
      },
      total: 1,
    };
  },
  methods: {
    show(verifyType, experType) {
      this.resultDetailShow = true;
      // console.log(verifyType, experType )
      if (verifyType == 1 || verifyType == 2) {
        this.titleList = util["wxst"]().titleList;
        this.tableData = [
          {
            name: "威胁实体提取baseline",
            resume: "威胁实体提取测评的基准线",
            correct: "96",
            detection: 98,
            accuracy: "94",
            expGroup: "97",
            count: "2023-02-22",
          },
          {
            name: "基于预训练模型的威胁实体提取",
            resume: "使用XLNET进行威胁实体提取",
            correct: 90,
            detection: 87,
            accuracy: 85,
            expGroup: 83,
            count: "2023-02-22",
          },
          {
            name: "Bert-使用BERT与CRF进行实体抽取",
            resume: "Bert",
            correct: 85,
            detection: 87,
            accuracy: 90,
            expGroup: 77,
            count: "2023-02-22",
          },
          ,
          {
            name: "LSTM实体识别模型",
            resume: "使用双向LSTM进行实体提取",
            correct: 87,
            detection: 86,
            accuracy: 91,
            expGroup: 78,
            count: "2023-02-22",
          },
        ];
      }
      if ((verifyType == 3 && experType == 1) || verifyType == 4) {
        this.titleList = util["wlqx"]().titleList;
        this.tableData = [
          {
            name: "Bret-CRF实体提取模型",
            resume: "使用BERT与CRF进行实体抽",
            correct: "85",
            detection: "87",
            accuracy: "90",
            count: "2023-02-22",
          },
        ];
      }
      if (verifyType == 3 && experType == 2) {
        this.titleList = util["xtqz"]().titleList;
        this.tableData = [
          {
            name: "LSTM实体识别模型",
            resume: "使用双向LSTM进行实体提取",
            correct: "70",
            detection: "60",
            accuracy: "77",
            expGroup: "123",
            count: "2023-02-22",
          },
        ];
      }
      console.log(this.titleList);
    },
    close() {
      this.resultDetailShow = false;
    },
  },
  mounted() {},
  created() {},
};
</script>

<style scoped></style>
